﻿using System.Web.Mvc;

namespace Inovout.Web.Mvc.Security
{
    public class AccountAuthenticationResult : ActionResult
    {
        public override void ExecuteResult(ControllerContext context)
        {
            IAuthenticationClient client = GetOAuthClient(provider);
            var securityManager = new OpenAuthSecurityManager(context, client, OAuthDataProvider);
            securityManager.RequestAuthentication(returnUrl);
        }
    }
}
